package com.hz.house.controller.home;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.hz.house.service.home.BuildingDianPingService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 *  	楼盘点评列表相关的接口
 * @author lfw
 *
 */
@RestController
@RequestMapping("/api/v2/dianping")
@Api("首页楼盘点评功能接口列表")
public class BuildingDianPingController {

	@Resource
	private BuildingDianPingService buildingDianPingService;
	
	@ApiOperation(value = "获取点评的列表信息,page分页页码")
	@GetMapping("/getDps")
	public Object getDianpingByPage(Integer page,String keyword) {
		return this.buildingDianPingService.getDianpingByPage(page,keyword);
	}
	
	@ApiOperation(value = "根据点评文章的id获取文章的链接")
	@GetMapping("/getDpLink")
	public Object getLinkById(Integer id) {
		return this.buildingDianPingService.getLinkById(id);
	}
	
}
